import { defHttp } from "@/utils/http";

// ERP 借用汇总 API
export const invtDeptMvTotApi = {
	// 查询借用汇总列表
	invtDeptMvTotList: async (params: any) => {
		return await defHttp.get({ url: `/whs/invt-dept-mv-tot/page`, params });
	},
	// 新增借用汇总
	invtDeptMvTotCreate: async (data: any) => {
		return await defHttp.post({ url: `/whs/invt-dept-mv-tot/create`, data });
	},

	// 修改借用汇总
	invtDeptMvTotUpdate: async (data: any) => {
		return await defHttp.put({ url: `/whs/invt-dept-mv-tot/update`, data });
	},

	// 删除借用汇总
	invtDeptMvTotDelete: async (id: number) => {
		return await defHttp.delete({ url: `/whs/invt-dept-mv-tot/delete?id=` + id });
	}
};
